package com.tct.smartRE.fwk.api.service;

import java.util.List;
import java.util.Map;

import com.tct.smartRE.fwk.api.IBusinessObject;

public interface IDBServiceWrapper {

	IBusinessObject load(Integer id, Class<?> clazz);

	void delete(IBusinessObject object);

	void delete(Integer id, Class<?> clazz);

	List<IBusinessObject> findAll(Class<?> clazz);

	Integer countAll(Class<?> clazz);

	List<Map<String, Object>> find(Map<String, Object> param);

	Integer count(Map<String, Object> param);
	
	Integer save(Map<String, Object> param);
}
